package com.lizhivscaomei.dueros.tobaccoguider.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import javax.persistence.Entity;
import javax.persistence.Lob;

/**
 * 烟草信息
 *
 * @author lizhi
 */
@Data
@Entity
@Document(indexName = "tobacco2")
public class TobaccoInfo {
    private static final long serialVersionUID = 606372252164866388L;
    /**
     * 浪潮编码
     */
    @Id
    @javax.persistence.Id
    @Field
    @Excel(name = "浪潮编码")
    private String code;
    /**
     * 卷烟条码
     */
    @Field
    @Excel(name = "卷烟条码")
    private String smallBoxCode;
    /**
     * 条盒条码
     */
    @Field
    @Excel(name = "条盒条码")
    private String bigBoxCode;

    /**
     * 香烟品牌
     */
    @Field
    @Excel(name = "香烟品牌")
    private String brand;
    /**
     * 型号
     */
    @Field
    @Excel(name = "型号")
    private String spec;
    /**
     * 香烟名称
     */
    @Excel(name = "香烟名称")
    @Field(analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    private String name;

    /**
     * 烟厂名称
     */
    @Field
    @Excel(name = "烟厂名称")
    private String company;
    /**
     * 零售价（元/盒）
     */
    @Field
    @Excel(name = "零售价")
    private String smallSalePricesStr;
    /**
     * 零售价（元/盒）
     */
    @Field
    private double smallSalePrice;
    /**
     * 每条销售价格
     */
    @Field
    private double bigSalePrice;
    /**
     * 价类
     */
    @Field
    @Excel(name = "价类")
    private String priceType;
    /**
     * 规格尺寸
     */
    @Field
    @Excel(name = "规格尺寸")
    private String sizeType;
    /**
     * /**
     * 是否爆珠
     */
    @Field
    @Excel(name = "是否爆珠")
    private String isBall;
    /**
     * /**
     * 口味
     */
    @Field
    @Excel(name = "口味")
    private String flavor;
    /**
     * 文字简介
     */
    @Lob
    @Excel(name = "文字简介")
    @Field(analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    private String content;
    /**
     * 产品状态
     */
    @Field
    @Excel(name = "产品状态")
    private String saleStatus;
    /**
     * 类型排序代码
     */
    @Field
    @Excel(name = "类型排序代码")
    private String typeOrderCode;
    /**
     * 类型
     */
    @Field
    @Excel(name = "类型")
    private String type;
    /**
     * 焦油量及烟气烟碱量
     */
    @Field(analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    @Excel(name = "焦油量及烟气烟碱量")
    private String feature;

}
